{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "slideshow": {
     "slide_type": "skip"
    },
    "tags": []
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "输出调查问卷的表头：\n",
      "Index(['编号', '开始答题时间', '结束答题时间', '答题时长', '地理位置国家和地区', '地理位置省', '地理位置市',\n",
      "       '自定义字段', '1.您需要同意上述协议才能继续提交试用申请', '2.请问您需要申请的产品是?',\n",
      "       '3.请问51SimOne需要的系统版本是?', '4.请输入您的姓名', '5.请输入您的手机号', '6.请输入您的公司邮箱',\n",
      "       '7.请输入您所属公司信息', '8.请选择您的岗位描述', '9.您是从哪个途径了解到51Sim-One产品的？'],\n",
      "      dtype='object')\n",
      "i\n",
      "<class 'pandas.core.frame.DataFrame'>\n"
     ]
    }
   ],
   "source": [
    "# import csv\n",
    "import pandas as pd\n",
    "import warnings\n",
    "from pyecharts.globals import CurrentConfig, NotebookType, OnlineHostType\n",
    "#CurrentConfig.ONLINE_HOST = \"https://www.echartsjs.com/examples/vendors/echarts/\"\n",
    "\n",
    "\n",
    "warnings.filterwarnings('ignore')\n",
    "\n",
    "data = pd.read_csv(\"before.csv\")\n",
    "category_label = pd.read_csv('labels.csv').values[:,0]\n",
    "category_label = [str(each) for each in category_label]\n",
    "print(\"输出调查问卷的表头：\")\n",
    "print(data.columns)\n",
    "print(category_label[2])\n",
    "print(type(data))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "slideshow": {
     "slide_type": "skip"
    },
    "tags": []
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "size 243 17\n",
      "repeat [11, 34, 38, 41, 50, 51, 57, 60, 79, 82, 85, 86, 89, 95, 100, 102, 106, 108, 111, 115, 119, 136, 141, 142, 173, 174, 182, 183, 201, 220, 227]\n",
      "<class 'pandas.core.frame.DataFrame'>\n",
      "new_size 243 17\n",
      "已经去掉了重复对象\n",
      "2020/7/9 11:17\n",
      "2020/7/8 15:57\n",
      "2020/7/8 15:14\n",
      "2020/7/7 14:48\n",
      "2020/7/7 10:50\n",
      "2020/7/6 16:07\n",
      "2020/7/6 11:04\n",
      "2020/7/6 9:45\n",
      "2020/7/6 9:15\n",
      "2020/7/3 16:46\n",
      "2020/7/3 15:42\n",
      "2020/7/3 14:37\n",
      "2020/7/2 11:01\n",
      "2020/7/2 0:13\n",
      "2020/7/1 21:37\n",
      "2020/7/1 17:18\n",
      "2020/7/1 16:47\n",
      "2020/7/1 15:12\n",
      "2020/7/1 15:04\n",
      "2020/7/1 14:50\n",
      "2020/7/1 14:45\n",
      "2020/7/1 9:15\n",
      "2020/6/30 17:34\n",
      "2020/6/30 17:34\n",
      "2020/6/29 14:48\n",
      "2020/6/29 13:44\n",
      "2020/6/28 22:36\n",
      "2020/6/28 17:08\n",
      "2020/6/23 15:58\n",
      "2020/6/23 11:52\n",
      "2020/6/18 17:00\n",
      "2020/6/18 10:33\n",
      "2020/6/16 17:48\n",
      "2020/6/16 9:42\n",
      "2020/6/12 14:42\n",
      "2020/6/12 10:19\n",
      "2020/6/10 15:19\n",
      "2020/6/8 9:55\n",
      "2020/6/8 9:46\n",
      "2020/6/7 7:34\n",
      "2020/6/2 16:40\n",
      "2020/5/31 17:45\n",
      "2020/5/29 11:03\n",
      "2020/5/25 9:05\n",
      "2020/5/22 23:00\n",
      "2020/5/22 15:45\n",
      "2020/5/22 11:44\n",
      "2020/5/18 10:43\n",
      "2020/5/17 14:10\n",
      "2020/5/16 16:13\n",
      "2020/5/16 10:00\n",
      "2020/5/15 8:15\n",
      "2020/5/12 16:04\n",
      "2020/5/12 15:28\n",
      "2020/5/11 21:54\n",
      "2020/5/9 8:37\n",
      "2020/5/7 16:19\n",
      "2020/5/7 16:13\n",
      "2020/5/6 10:46\n",
      "2020/5/4 16:33\n",
      "2020/4/29 15:56\n",
      "2020/4/28 15:21\n",
      "2020/4/28 14:30\n",
      "2020/4/28 9:36\n",
      "2020/4/27 16:52\n",
      "2020/4/27 14:26\n",
      "2020/4/27 11:09\n",
      "2020/4/27 9:30\n",
      "2020/4/26 18:44\n",
      "2020/4/26 17:16\n",
      "2020/4/26 17:10\n",
      "2020/4/26 12:52\n",
      "2020/4/26 11:48\n",
      "2020/4/25 13:18\n",
      "2020/4/25 8:20\n",
      "2020/4/25 6:07\n",
      "2020/4/24 11:03\n",
      "2020/4/23 17:06\n",
      "2020/4/23 15:40\n",
      "2020/4/23 10:37\n",
      "2020/4/20 20:36\n",
      "2020/4/20 16:11\n",
      "2020/4/18 11:06\n",
      "2020/4/17 15:57\n",
      "2020/4/15 17:57\n",
      "2020/4/11 14:50\n",
      "2020/4/9 17:43\n",
      "2020/4/7 17:47\n",
      "2020/4/6 21:57\n",
      "2020/4/6 21:55\n",
      "2020/4/1 15:05\n",
      "2020/3/29 21:01\n",
      "2020/3/27 7:15\n",
      "2020/3/26 15:15\n",
      "2020/3/26 14:52\n",
      "2020/3/26 14:36\n",
      "2020/3/25 17:43\n",
      "2020/3/24 19:32\n",
      "2020/3/24 17:39\n",
      "2020/3/24 17:25\n",
      "2020/3/24 17:19\n",
      "2020/3/24 17:17\n",
      "2020/3/24 17:13\n",
      "2020/3/23 20:29\n",
      "2020/3/18 16:40\n",
      "2020/3/17 12:14\n",
      "2020/3/16 15:42\n",
      "2020/3/13 18:56\n",
      "2020/3/13 18:45\n",
      "2020/3/8 18:24\n",
      "2020/3/7 14:06\n",
      "2020/3/6 15:13\n",
      "2020/3/4 11:27\n",
      "2020/3/4 13:45\n",
      "2020/3/2 13:25\n",
      "2020/3/2 13:23\n",
      "2020/2/20 16:56\n",
      "2020/2/6 17:38\n",
      "2020/2/3 13:11\n",
      "2020/2/3 13:02\n",
      "2020/2/2 17:50\n",
      "2020/1/21 12:34\n",
      "2020/1/20 14:31\n",
      "2020/1/19 9:00\n",
      "2020/1/16 10:27\n",
      "2020/1/14 12:39\n",
      "2020/1/10 20:44\n",
      "2020/1/4 18:25\n",
      "2019/12/31 16:29\n",
      "2019/12/27 14:51\n",
      "2019/12/27 11:25\n",
      "2019/12/24 17:01\n",
      "2019/12/24 16:17\n",
      "2019/12/24 9:43\n",
      "2019/12/21 16:16\n",
      "2019/12/21 12:20\n",
      "2019/12/18 11:43\n",
      "2019/12/10 14:27\n",
      "2019/12/9 9:22\n",
      "2019/12/7 16:36\n",
      "2019/12/4 7:11\n",
      "2019/12/2 17:27\n",
      "2019/12/2 17:20\n",
      "2019/12/2 12:44\n",
      "2019/11/29 19:35\n",
      "2019/11/26 13:25\n",
      "2019/11/22 14:00\n",
      "2019/11/20 9:54\n",
      "2019/11/14 14:54\n",
      "2019/11/13 15:50\n",
      "2019/11/13 12:13\n",
      "2019/11/11 14:32\n",
      "2019/11/11 11:47\n",
      "2019/11/11 11:41\n",
      "2019/11/6 17:07\n",
      "2019/11/4 21:32\n",
      "2019/11/4 19:34\n",
      "2019/11/4 11:32\n",
      "2019/11/4 10:52\n",
      "2019/10/25 16:48\n",
      "2019/10/16 15:51\n",
      "2019/10/15 16:34\n",
      "2019/10/15 8:58\n",
      "2019/10/12 18:13\n",
      "2019/10/11 14:31\n",
      "2019/10/10 18:58\n",
      "2019/10/10 16:44\n",
      "2019/10/8 22:06\n",
      "2019/10/2 10:02\n",
      "2019/10/2 10:00\n",
      "2019/9/16 14:06\n",
      "2019/9/6 16:56\n",
      "2019/9/6 10:59\n",
      "2019/9/4 9:05\n",
      "2019/9/3 17:03\n",
      "2019/9/3 11:21\n",
      "2019/9/2 18:22\n",
      "2019/9/1 12:53\n",
      "2019/8/30 10:03\n",
      "2019/8/29 15:37\n",
      "2019/8/24 21:09\n",
      "2019/8/22 11:29\n",
      "2019/8/19 8:08\n",
      "2019/8/19 8:05\n",
      "2019/8/15 16:48\n",
      "2019/8/12 11:49\n",
      "2019/8/12 10:06\n",
      "2019/8/8 18:00\n",
      "2019/8/6 9:36\n",
      "2019/8/2 17:45\n",
      "2019/8/2 9:46\n",
      "2019/8/1 10:41\n",
      "2019/7/29 14:21\n",
      "2019/7/26 14:20\n",
      "2019/7/23 17:35\n",
      "2019/7/22 23:22\n",
      "2019/7/22 11:49\n",
      "2019/7/17 13:39\n",
      "2019/7/15 15:06\n",
      "2019/7/10 10:32\n",
      "2019/7/3 13:11\n",
      "2019/7/2 14:23\n",
      "2019/6/25 15:15\n",
      "2019/6/25 9:56\n",
      "2019/6/24 8:11\n",
      "2019/6/20 16:39\n",
      "2019/6/20 15:36\n",
      "2019/6/20 12:54\n",
      "2019/6/20 12:00\n",
      "2019/6/20 9:53\n",
      "2019/6/20 9:49\n",
      "2019/6/20 9:31\n",
      "2019/6/18 11:08\n",
      "2019/6/17 17:54\n",
      "2019/6/14 18:02\n",
      "2019/6/12 11:10\n",
      "2019/6/11 18:09\n",
      "2019/6/10 9:52\n",
      "2019/6/6 12:18\n",
      "2019/6/5 19:44\n",
      "2019/6/5 11:47\n",
      "2019/6/4 18:22\n",
      "2019/6/4 17:49\n",
      "2019/6/4 17:10\n",
      "2019/6/4 17:09\n",
      "2019/6/4 16:26\n",
      "2019/6/4 16:25\n",
      "2019/6/4 16:23\n",
      "2019/6/4 16:22\n",
      "2019/6/4 16:12\n",
      "2019/6/3 9:30\n",
      "2019/5/31 22:28\n",
      "2019/5/31 14:27\n",
      "2019/5/31 9:14\n",
      "2019/5/30 15:22\n",
      "2019/5/30 11:32\n",
      "2019/5/30 11:25\n",
      "2019/5/28 15:31\n",
      "2019/5/17 19:34\n",
      "2019/5/16 13:14\n",
      "2019/5/16 10:10\n",
      "2019/4/27 23:07\n",
      "2019/4/18 16:27\n"
     ]
    }
   ],
   "source": [
    "m,n = data.shape[0],data.shape[1]\n",
    "print(\"size\",m,n)\n",
    "#print(data.values[:,12])\n",
    "# 去重 用电话号码 (假设重复填写者连续)\n",
    "phones = []\n",
    "repeat = []\n",
    "for i in range(m):\n",
    "    if data.values[i,12] not in phones:\n",
    "        phones.append(data.values[i,12])\n",
    "    else:\n",
    "        repeat.append(i)\n",
    "print(\"repeat\",repeat)\n",
    "print(type(data))\n",
    "\n",
    "data.drop(repeat,axis=0)\n",
    "data = data.reset_index(drop=True)\n",
    "m,n = data.shape[0],data.shape[1]\n",
    "print(\"new_size\",m,n)\n",
    "print(\"已经去掉了重复对象\")\n",
    "for item in data['开始答题时间']:\n",
    "    print(item)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {
    "slideshow": {
     "slide_type": "skip"
    },
    "tags": []
   },
   "outputs": [],
   "source": [
    "#,n = data.shape[0],data.shape[1]\n",
    "applytime=[] # 统计申请数的时间分布\n",
    "\n",
    "for i in range(m):\n",
    "    # 找到月份信息\n",
    "    string = data['开始答题时间'][i]\n",
    "    start_str=\"/\"\n",
    "    end=\"/\"\n",
    "    start = string.find(start_str)\n",
    "    if start >= 0:\n",
    "            start += len(start_str)\n",
    "            end = string.find(end, start)\n",
    "            if end >= 0:\n",
    "                month_info = string[start:end].strip()\n",
    "    if len(month_info) == 1:\n",
    "        month_info = \"0\" + month_info\n",
    "    applytime.append(data['开始答题时间'][i][0:4]+month_info)\n",
    "\n",
    "#print(applytime)\n",
    "time_num = []\n",
    "'''\n",
    "for item in applytime:\n",
    "    if item[4:7] == \"Jan\":\n",
    "        time_num.append(item[0:4]+\"01\")\n",
    "    elif item[4:7] == \"Feb\":\n",
    "        time_num.append(item[0:4]+\"02\")\n",
    "    elif item[4:7] == \"Mar\":\n",
    "        time_num.append(item[0:4]+\"03\")\n",
    "    elif item[4:7] == \"Apr\":\n",
    "        time_num.append(item[0:4]+\"04\")\n",
    "    elif item[4:7] == \"May\":\n",
    "        time_num.append(item[0:4]+\"05\")\n",
    "    elif item[4:7] == \"Jun\":\n",
    "        time_num.append(item[0:4]+\"06\")\n",
    "    elif item[4:7] == \"Jul\":\n",
    "        time_num.append(item[0:4]+\"07\")\n",
    "    elif item[4:7] == \"Aug\":\n",
    "        time_num.append(item[0:4]+\"08\")\n",
    "    elif item[4:7] == \"Sep\":\n",
    "        time_num.append(item[0:4]+\"09\")\n",
    "    elif item[4:7] == \"Oct\":\n",
    "        time_num.append(item[0:4]+\"10\")\n",
    "    elif item[4:7] == \"Nov\":\n",
    "        time_num.append(item[0:4]+\"11\")\n",
    "    else:\n",
    "        time_num.append(item[0:4]+\"12\")\n",
    "'''\n",
    "time_num = applytime"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {
    "slideshow": {
     "slide_type": "skip"
    },
    "tags": []
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[2, 10, 29, 10, 14, 8, 11, 15, 16, 7, 5, 25, 31, 19, 19, 22]\n"
     ]
    }
   ],
   "source": [
    "def get_application_times_per_month(y):\n",
    "    import numpy as np\n",
    "    y = sorted(y)\n",
    "    #print(y) \n",
    "    #统计出现的元素有哪些\n",
    "    unique_data = np.unique(y)\n",
    "    #print(unique_data)\n",
    "\n",
    "    #统计某个元素出现的次数\n",
    "    resdata = []\n",
    "    for ii in unique_data:\n",
    "        resdata.append(y.count(ii))\n",
    "    #print(resdata)\n",
    "    return unique_data,resdata\n",
    "\n",
    "month,times = get_application_times_per_month(time_num)\n",
    "label_res,label_fre = get_application_times_per_month(category_label)\n",
    "month = list(month)\n",
    "\n",
    "print(times)\n",
    "weichatall = [1673,1930,397,0,0,1884,0,0,541,0,1288,2828,3751,257,826,1046]"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {
    "slideshow": {
     "slide_type": "slide"
    }
   },
   "source": [
    "# 2019年3月到2020年七月 Sim One 产品使用分析"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {
    "slideshow": {
     "slide_type": "slide"
    }
   },
   "source": [
    "# 统计微信影响\n",
    "\n",
    "+ 去除重复\n",
    "+ 统计从2019年5月到"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {
    "slideshow": {
     "slide_type": "skip"
    }
   },
   "outputs": [],
   "source": [
    "get_from = data.values[:,16]\n",
    "#get_from"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {
    "slideshow": {
     "slide_type": "skip"
    },
    "tags": []
   },
   "outputs": [],
   "source": [
    "labels = []\n",
    "# 官网为类别 1 微信平台为类别2\n",
    "for item in get_from:\n",
    "    if (item == '官网') & (item == '网络') & (item == '互联网'):\n",
    "        labels.append(1)\n",
    "    elif (item == '公众号') & (item == '微信') & (item == '朋友圈'):\n",
    "        labels.append(2)\n",
    "    else:\n",
    "        labels.append(-1)    "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {
    "slideshow": {
     "slide_type": "skip"
    }
   },
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "D:\\feiyuxiao\\Softwares\\python\\lib\\site-packages\\pyecharts\\charts\\chart.py:14: PendingDeprecationWarning: pyecharts 所有图表类型将在 v1.9.0 版本开始强制使用 ChartItem 进行数据项配置 :)\n",
      "  super().__init__(init_opts=init_opts)\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "'D:\\\\feiyuxiao\\\\Work\\\\WeichatSales\\\\bar_base.html'"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "from pyecharts import options as opts\n",
    "from pyecharts.charts import Bar\n",
    "from pyecharts.faker import Faker\n",
    "\n",
    "\n",
    "#CurrentConfig.ONLINE_HOST = \"https://assets.pyecharts.org/assets/\"\n",
    "CurrentConfig.ONLINE_HOST = \"https://echarts.apache.org/examples/vendors/echarts/\"\n",
    "\n",
    "v1 = [int(each) for each in times] # 总用户量\n",
    "v2 = [float(each)/100 for each in weichatall] # 完成输入用户量\n",
    "\n",
    "c = (\n",
    "    Bar()\n",
    "    .add_xaxis(month)\n",
    "    .add_yaxis(\"试用申请量\", v1)\n",
    "    .add_yaxis(\"公众号文章阅读量\", v2)\n",
    "    .set_global_opts(title_opts=opts.TitleOpts(title=\"Sim-One 试用申请与公众号阅读量变动\", subtitle=\"公众号阅读量x100\"))\n",
    ")\n",
    "\n",
    "c.render(\"bar_base.html\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {
    "slideshow": {
     "slide_type": "slide"
    }
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts':'https://echarts.apache.org/examples/vendors/echarts/echarts.min'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "\n",
       "        <div id=\"cb23d98a425b436497bb3345c61cd68a\" style=\"width:900px; height:500px;\"></div>\n",
       "\n",
       "<script>\n",
       "        require(['echarts'], function(echarts) {\n",
       "                var chart_cb23d98a425b436497bb3345c61cd68a = echarts.init(\n",
       "                    document.getElementById('cb23d98a425b436497bb3345c61cd68a'), 'white', {renderer: 'canvas'});\n",
       "                var option_cb23d98a425b436497bb3345c61cd68a = {\n",
       "    \"animation\": true,\n",
       "    \"animationThreshold\": 2000,\n",
       "    \"animationDuration\": 1000,\n",
       "    \"animationEasing\": \"cubicOut\",\n",
       "    \"animationDelay\": 0,\n",
       "    \"animationDurationUpdate\": 300,\n",
       "    \"animationEasingUpdate\": \"cubicOut\",\n",
       "    \"animationDelayUpdate\": 0,\n",
       "    \"color\": [\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\"\n",
       "    ],\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"bar\",\n",
       "            \"name\": \"\\u8bd5\\u7528\\u7533\\u8bf7\\u91cf\",\n",
       "            \"legendHoverLink\": true,\n",
       "            \"data\": [\n",
       "                2,\n",
       "                10,\n",
       "                29,\n",
       "                10,\n",
       "                14,\n",
       "                8,\n",
       "                11,\n",
       "                15,\n",
       "                16,\n",
       "                7,\n",
       "                5,\n",
       "                25,\n",
       "                31,\n",
       "                19,\n",
       "                19,\n",
       "                22\n",
       "            ],\n",
       "            \"showBackground\": false,\n",
       "            \"barMinHeight\": 0,\n",
       "            \"barCategoryGap\": \"20%\",\n",
       "            \"barGap\": \"30%\",\n",
       "            \"large\": false,\n",
       "            \"largeThreshold\": 400,\n",
       "            \"seriesLayoutBy\": \"column\",\n",
       "            \"datasetIndex\": 0,\n",
       "            \"clip\": true,\n",
       "            \"zlevel\": 0,\n",
       "            \"z\": 2,\n",
       "            \"label\": {\n",
       "                \"show\": true,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            }\n",
       "        },\n",
       "        {\n",
       "            \"type\": \"bar\",\n",
       "            \"name\": \"\\u516c\\u4f17\\u53f7\\u6587\\u7ae0\\u9605\\u8bfb\\u91cf\",\n",
       "            \"legendHoverLink\": true,\n",
       "            \"data\": [\n",
       "                16.73,\n",
       "                19.3,\n",
       "                3.97,\n",
       "                0.0,\n",
       "                0.0,\n",
       "                18.84,\n",
       "                0.0,\n",
       "                0.0,\n",
       "                5.41,\n",
       "                0.0,\n",
       "                12.88,\n",
       "                28.28,\n",
       "                37.51,\n",
       "                2.57,\n",
       "                8.26,\n",
       "                10.46\n",
       "            ],\n",
       "            \"showBackground\": false,\n",
       "            \"barMinHeight\": 0,\n",
       "            \"barCategoryGap\": \"20%\",\n",
       "            \"barGap\": \"30%\",\n",
       "            \"large\": false,\n",
       "            \"largeThreshold\": 400,\n",
       "            \"seriesLayoutBy\": \"column\",\n",
       "            \"datasetIndex\": 0,\n",
       "            \"clip\": true,\n",
       "            \"zlevel\": 0,\n",
       "            \"z\": 2,\n",
       "            \"label\": {\n",
       "                \"show\": true,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [\n",
       "                \"\\u8bd5\\u7528\\u7533\\u8bf7\\u91cf\",\n",
       "                \"\\u516c\\u4f17\\u53f7\\u6587\\u7ae0\\u9605\\u8bfb\\u91cf\"\n",
       "            ],\n",
       "            \"selected\": {\n",
       "                \"\\u8bd5\\u7528\\u7533\\u8bf7\\u91cf\": true,\n",
       "                \"\\u516c\\u4f17\\u53f7\\u6587\\u7ae0\\u9605\\u8bfb\\u91cf\": true\n",
       "            },\n",
       "            \"show\": true,\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10,\n",
       "            \"itemWidth\": 25,\n",
       "            \"itemHeight\": 14\n",
       "        }\n",
       "    ],\n",
       "    \"tooltip\": {\n",
       "        \"show\": true,\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"showContent\": true,\n",
       "        \"alwaysShowContent\": false,\n",
       "        \"showDelay\": 0,\n",
       "        \"hideDelay\": 100,\n",
       "        \"textStyle\": {\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"borderWidth\": 0,\n",
       "        \"padding\": 5\n",
       "    },\n",
       "    \"xAxis\": [\n",
       "        {\n",
       "            \"show\": true,\n",
       "            \"scale\": false,\n",
       "            \"nameLocation\": \"end\",\n",
       "            \"nameGap\": 15,\n",
       "            \"gridIndex\": 0,\n",
       "            \"inverse\": false,\n",
       "            \"offset\": 0,\n",
       "            \"splitNumber\": 5,\n",
       "            \"minInterval\": 0,\n",
       "            \"splitLine\": {\n",
       "                \"show\": false,\n",
       "                \"lineStyle\": {\n",
       "                    \"show\": true,\n",
       "                    \"width\": 1,\n",
       "                    \"opacity\": 1,\n",
       "                    \"curveness\": 0,\n",
       "                    \"type\": \"solid\"\n",
       "                }\n",
       "            },\n",
       "            \"data\": [\n",
       "                \"201904\",\n",
       "                \"201905\",\n",
       "                \"201906\",\n",
       "                \"201907\",\n",
       "                \"201908\",\n",
       "                \"201909\",\n",
       "                \"201910\",\n",
       "                \"201911\",\n",
       "                \"201912\",\n",
       "                \"202001\",\n",
       "                \"202002\",\n",
       "                \"202003\",\n",
       "                \"202004\",\n",
       "                \"202005\",\n",
       "                \"202006\",\n",
       "                \"202007\"\n",
       "            ]\n",
       "        }\n",
       "    ],\n",
       "    \"yAxis\": [\n",
       "        {\n",
       "            \"show\": true,\n",
       "            \"scale\": false,\n",
       "            \"nameLocation\": \"end\",\n",
       "            \"nameGap\": 15,\n",
       "            \"gridIndex\": 0,\n",
       "            \"inverse\": false,\n",
       "            \"offset\": 0,\n",
       "            \"splitNumber\": 5,\n",
       "            \"minInterval\": 0,\n",
       "            \"splitLine\": {\n",
       "                \"show\": false,\n",
       "                \"lineStyle\": {\n",
       "                    \"show\": true,\n",
       "                    \"width\": 1,\n",
       "                    \"opacity\": 1,\n",
       "                    \"curveness\": 0,\n",
       "                    \"type\": \"solid\"\n",
       "                }\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"Sim-One \\u8bd5\\u7528\\u7533\\u8bf7\\u4e0e\\u516c\\u4f17\\u53f7\\u9605\\u8bfb\\u91cf\\u53d8\\u52a8\",\n",
       "            \"subtext\": \"\\u516c\\u4f17\\u53f7\\u9605\\u8bfb\\u91cfx100\",\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10\n",
       "        }\n",
       "    ]\n",
       "};\n",
       "                chart_cb23d98a425b436497bb3345c61cd68a.setOption(option_cb23d98a425b436497bb3345c61cd68a);\n",
       "        });\n",
       "    </script>\n"
      ],
      "text/plain": [
       "<pyecharts.render.display.HTML at 0x173d417f4c8>"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "c.render_notebook()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "celltoolbar": "幻灯片",
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
